from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse

def create_response(status_code: int = 200, message: str = "Success", data: Any = None):
    content = {
        "status": status_code,
        "message": message,
        "data": data
    }
    return JSONResponse(
        content=jsonable_encoder(content),
        status_code=status_code
    ) 